import Vue from 'vue';
import App from './App.vue';
import Vant from 'vant';
import VueRouter from 'vue-router';
import routes from '@/router'
import 'vant/lib/index.css';
import moment from 'moment';

import Vuex from 'vuex';
import storeConfig from '@/store';

moment.locale('zh-cn');


import NavBar from '@/components/nav-bar'
import ArticleList from '@/components/article-list'
Vue.component('NavBar', NavBar)
Vue.component('ArticleList', ArticleList)

Vue.use(Vant);
Vue.use(VueRouter);
Vue.use(Vuex);

Vue.config.productionTip = false;

new Vue({
  // 挂载路由
  router: new VueRouter({
    mode: 'history',
    routes,
  }),
  // 挂载store
  store: new Vuex.Store(storeConfig),
  render: h => h(App),
}).$mount('#app')
